import { request } from './index'
import { loginType, registerType } from '@/type/loginType'

// 用户登录
export function UserLogin (data: loginType) {
  return request({
    url: '/api/auth/login',
    method: 'post',
    data: data
  })
}

// 用户注册
export function UserRegister (data: registerType) {
  return request({
    url: '/api/auth/register',
    method: 'post',
    data: data
  })
}